package com.lins.wechat.task;

import com.lins.wechat.controller.WeChatController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author linshuo
 * @Date 2023/7/14 15:41
 */
@Component
public class PushTask {

    @Autowired
    WeChatController weChatController;

    //每日 早上9点 定时推送
    @Scheduled(cron = "0 0 9 * * ?")
    public void scheduledPush(){
        weChatController.readyPush();
    }
}
